package homework3;

public class Coordinate <T>{
    private T x;
    private T y;
    public Coordinate(){
    }
    public Coordinate(T x,T y){
        this.x = x;
        this.y = y;
    }
    public T getX(){
        return x;
    }
    public T getY(){
        return y;
    }
    public void setX(T x){
        this.x = x;
    }
    public void setY(T y){
        this.y = y;
    }

    @Override
    public String toString() {
        return "Coordinate{" +
                "x=" + x +
                ", y=" + y +
                '}';
    }
}
